After the reader presses the button below, I'll write hello to the frame above.
You must designate a particular frame or window to write to, when writing to other than the current frame. In this example, to write to the JSChello frame, it must be given an explicit path. For more details, please read about frames and windows.
parent.JSChello.document.open() parent.JSChello.document.write(s1+msg+s2) parent.JSChello.document.close()